#include <iostream>
#include <string>
#include <fstream>
#include "EmployeeManagementSystem.h"
using namespace std;

int main() {
    readFile(StaffNode::p);
    while(1) {
        displayMenu();
        int select;
        cin >> select;
        switch(select) {
            case 1:
            break;
            case 2:
            addStaffs(StaffNode::p);
            break;
            case 3:
            displayStaff(StaffNode::p);
            break;
            case 4:
            deleteStaff(StaffNode::p);
            break;
            case 5:
            modifyStaff(StaffNode::p);
            break;
            case 6:
            searchStaff1(StaffNode::p);
            break;
            case 7:
            searchStaff2(StaffNode::p);
            break;
            case 8:
            sortStaff(StaffNode::p);
            break;
            case 9:
            deleteAll(StaffNode::p);
            break;
            default:
            cout << "输入有误，请重新输入。" << endl;
            break;
        }
        if(select == 1) break;
        system("clear");
    }
    return 0;
}